package com.design.javaManage.controller;


import com.design.javaManage.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @RestController=@Controller+@ResponseBody
 *
 *
 */
@RestController
@Api(value = "测试接口")
public class TestController {

    @ApiOperation(value = "测试test")
    @PreAuthorize("hasAuthority('USER_DELETE')")
    @GetMapping("/test")
    public Result test(){
        return Result.success("返回信息成功","你好！");
    }
}
